package com.uikoo9.manage.y.util;

import javax.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA. 工具类方便在任意地方获取 request
 * User: user
 * Date: 15-9-3
 * Time: 下午7:08
 * To change this template use File | Settings | File Templates.
 */
public class RequestKit {
    private static ThreadLocal tl = new ThreadLocal<HttpServletRequest>();

    public static void put(HttpServletRequest s) {
        tl.set(s);
    }

    public static HttpServletRequest get() {
        return (HttpServletRequest) tl.get();
    }

    public static void remove() {
        tl.remove();
    }
}
